package com.white.algebra.domain;

import java.util.Date;
import java.util.List;

public class Discussion {
    private String id;
    private String author;
    private UserInfo authorInfo;
    private String name;
    private String text;
    private int views;
    private int replys;
    private int rewards;
    private Date time;
    private int status;
    private List<Discuss> discuss;

    public Discussion() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }

    public int getReplys() {
        return replys;
    }

    public void setReplys(int replys) {
        this.replys = replys;
    }

    public int getRewards() {
        return rewards;
    }

    public void setRewards(int rewards) {
        this.rewards = rewards;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<Discuss> getDiscuss() {
        return discuss;
    }

    public void setDiscuss(List<Discuss> discuss) {
        this.discuss = discuss;
    }

    public UserInfo getAuthorInfo() {
        return authorInfo;
    }

    public void setAuthorInfo(UserInfo authorInfo) {
        this.authorInfo = authorInfo;
    }

    @Override
    public String toString() {
        return "Discussion{" +
                "id='" + id + '\'' +
                ", author='" + author + '\'' +
                ", authorInfo=" + authorInfo +
                ", name='" + name + '\'' +
                ", text='" + text + '\'' +
                ", views=" + views +
                ", replys=" + replys +
                ", rewards=" + rewards +
                ", time=" + time +
                ", status=" + status +
                ", discuss=" + discuss +
                '}';
    }
}
